package com.ctgu.server.controller;


import com.ctgu.server.dao.dto.RecordDto;
import com.ctgu.server.dao.entity.AttendanceTimeSlot;
import com.ctgu.server.dao.vo.Result;
import com.ctgu.server.service.AttendanceRecordService;
import com.ctgu.server.utils.ResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 * 考勤记录表 前端控制器
 * </p>
 *
 * @author ctgu
 * @since 2023-06-13
 */
@RestController
@RequestMapping("/server/attendanceRecord")
@CrossOrigin
@Api(tags = "打卡操作接口")
public class AttendanceRecordController {
    @Autowired
    private AttendanceRecordService attendanceRecordService;
    @ApiOperation(notes = "考勤组上班打卡",value = "考勤组上班打卡")
    @PostMapping("/clockIn")
    public Result clockInRecord(@Validated @RequestBody RecordDto recordDto){

        return attendanceRecordService.clockInRecord(recordDto);
    }
}

